package com.nikkerball.interpreter;

import com.nikkerball.unit.ThousandsUnit;

import java.util.ArrayList;
import java.util.List;

/**
 * User: Marius
 * Date: 15-Feb-2010
 * Time: 19:30:42
 */
public class BasicInterpreter implements Interpreter<ThousandsUnit> {

    public String interpret(ThousandsUnit unit, double value) {
        return Double.toString(value);
    }

    public List<ThousandsUnit> getAllowedUnits() {
        List<ThousandsUnit> units = new ArrayList<ThousandsUnit>();
        units.add(ThousandsUnit.single);
        return units;
    }

}
